package com.yami.shop.bean.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 *
 *
 * @author lhd
 * @date 2020-08-26 15:39:09
 */
@Data
public class ProdLangParam implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @Schema(description = "商品id", required = true)
    private Long prodId;
    /**
     * 语言 0.中文 1.英文
     */
    @Schema(description = "语言 0.中文 1.英文", required = true)
    private Integer lang;
    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空")
    @Size(max = 200, message = "商品名称长度应该小于{max}")
    @Schema(description = "商品名称")
    private String prodName;
    /**
     * 简要描述,卖点等
     */
    @Size(max = 500, message = "商品卖点长度应该小于{max}")
    @Schema(description = "简要描述,卖点等")
    private String brief;
    /**
     * 详细描述
     */
    @Schema(description = "详细描述")
    private String content;

}
